package com.oz.ems.bean;

import org.nutz.dao.entity.annotation.Table;

//import com.fasterxml.jackson.annotation.JsonFormat;

import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Prev;

import java.util.Date;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.EL;


@Table("JUST_DEMO")
public class Demo {
	
	@Name //注意,字符串主键用@Name,与属性名称无关!!!
	@Prev(els=@EL("uuid(32)")) // 可以是 uuid() uuid(32)
	@ColDefine(type = ColType.VARCHAR, width = 32)
	private String id;

	@ColDefine(type = ColType.VARCHAR, width = 100)
	private String name;

	@ColDefine(type = ColType.VARCHAR, width =  100)
	private String region;

	@ColDefine(type = ColType.VARCHAR, width =  1500)
	private String imgs;

//	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ColDefine(type = ColType.DATETIME)
	private Date date1;

//	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ColDefine(type = ColType.DATETIME)
	private Date date2;

	private Boolean delivery;

	@ColDefine(type = ColType.VARCHAR, width =  200)
	private String classify;

	@ColDefine(type = ColType.VARCHAR, width =  200)
	private  String resource;

	@ColDefine(type = ColType.VARCHAR, width =  100)
	private String remarks;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public String getImgs() {
		return imgs;
	}

	public void setImgs(String imgs) {
		this.imgs = imgs;
	}

	public Date getDate1() {
		return date1;
	}

	public void setDate1(Date date1) {
		this.date1 = date1;
	}

	public Date getDate2() {
		return date2;
	}

	public void setDate2(Date date2) {
		this.date2 = date2;
	}

	public Boolean getDelivery() {
		return delivery;
	}

	public void setDelivery(Boolean delivery) {
		this.delivery = delivery;
	}

	public String getClassify() {
		return classify;
	}

	public void setClassify(String classify) {
		this.classify = classify;
	}

	public String getResource() {
		return resource;
	}

	public void setResource(String resource) {
		this.resource = resource;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

}
